package com.itheima.test;

import com.alibaba.fastjson2.JSONObject;

public class demo01 {
    public static void main(String[] args) {
        goRun(new Sport() {
            @Override
            public void run(int d) {
                System.out.println("跑了"+d);
            }
        });

        goRun(d -> System.out.println(d));
    }
    public static void goRun(Sport s){
        s.run(100);
    }
}
